]> git.pld-linux.org Git - packages/vcdimager.git/blob - vcdimager.spec
- added bcond_without static
[packages/vcdimager.git] / vcdimager.spec
1 %bcond_without  static  # don't build static library
2 Summary:        VideoCD (pre-)mastering and ripping tools
3 Summary(pl):    Narzêdzia do tworzenia i odczytu VideoCD
4 Name:           vcdimager
5 Version:        0.7.22
6 Release:        1
7 License:        GPL
8 Group:          Applications/File
9 #Source0:       http://www.vcdimager.org/pub/vcdimager/vcdimager-0.7/%{name}-%{version}.tar.gz
10 Source0:        ftp://ftp.gnu.org/gnu/vcdimager/%{name}-%{version}.tar.gz
11 # Source0-md5:  d7ceca2631fb732ff1257c2d3a7df45d
12 Patch0:         %{name}-info.patch
13 URL:            http://www.gnu.org/software/vcdimager/
14 BuildRequires:  autoconf >= 2.52
15 BuildRequires:  automake >= 1.6.0
16 BuildRequires:  libcdio-devel >= 0.72
17 BuildRequires:  libtool >= 1:1.4.2-9
18 BuildRequires:  libxml2-devel >= 2.6.11
19 BuildRequires:  pkgconfig
20 BuildRequires:  popt-devel >= 1.7
21 BuildRequires:  texinfo
22 Requires(post,postun):  /sbin/ldconfig
23 Requires:       libcdio >= 0.72
24 Requires:       libxml2 >= 2.6.11
25 Requires:       popt >= 1.7
26 Obsoletes:      vcdimager-cdio
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _noautoreqdep   libvcd.so.0 libvcdinfo.so.0
30
31 %description
32 VCDImager allows you to create VideoCD BIN/CUE CD images from mpeg
33 files which can be burned with cdrdao or any other program capable of
34 burning BIN/CUE files. VCDRip, which comes with VCDImager, does the
35 reverse operation. That is, ripping mpeg streams from images (and
36 already burned VideoCDs) and showing some information about the
37 VideoCD.
38
39 %description -l pl
40 VCDImager s³u¿y do tworzenia obrazów VideoCD BIN/CUE z plików mpeg,
41 które nastêpnie mog± byæ wypalone za pomoc± cdrdao lub innego programu
42 zdolnego do wypalania plików BIN/CUE. VCDRip dostarczany wraz z
43 VCDImager pozwala na wykonanie odwrotnej operacji tzn. zrzucenia
44 strumienia mpeg z obrazów (oraz ju¿ wypalonych p³yt VideoCD).
45
46 %package devel
47 Summary:        Header files for vcd libraries
48 Summary(pl):    Pliki nag³ówkowe bibliotek vcd
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       libcdio-devel >= 0.72
52 Obsoletes:      vcdimager-cdio-devel
53
54 %description devel
55 Header files for vcd libraries.
56
57 %description devel -l pl
58 Pliki nag³ówkowe bibliotek vcd.
59
60 %package static
61 Summary:        Static vcd libraries
62 Summary(pl):    Statyczne biblioteki vcd
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65 Obsoletes:      vcdimager-cdio-static
66
67 %description static
68 Static vcd libraries.
69
70 %description static -l pl
71 Statyczne biblioteki vcd.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76
77 cp -f libpopt.m4 acinclude.m4
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --enable-maintainer-mode \
87         %{!?with_static:--disable-static}
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post
100 /sbin/ldconfig
101 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
102
103 %postun
104 /sbin/ldconfig
105 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
106
107 %files
108 %defattr(644,root,root,755)
109 %doc AUTHORS BUGS ChangeLog FAQ NEWS README THANKS TODO
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
112 %{_mandir}/man1/*.1*
113 %{_infodir}/*.info*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so
118 %{_libdir}/lib*.la
119 %{_includedir}/libvcd
120 %{_pkgconfigdir}/*.pc
121
122 %if %{with static}
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/lib*.a
126 %endif
This page took 0.048183 seconds and 4 git commands to generate.