]> git.pld-linux.org Git - packages/vcdimager.git/blobdiff - vcdimager.spec
- release 2, rebuild against libcdio 2.1.0
[packages/vcdimager.git] / vcdimager.spec
index 2d4cbc22879f908b30276085c6e96794eebb51dc..3101cacda11c1fb13b4ddd47ac6ab610866e0750 100644 (file)
@@ -1,26 +1,33 @@
-Summary:       VideoCD (pre-)mastering and ripping tool
-Summary(pl):   VideoCD generation tool
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
+Summary:       VideoCD (pre-)mastering and ripping tools
+Summary(pl.UTF-8):     Narzędzia do tworzenia i odczytu VideoCD
 Name:          vcdimager
-Version:       0.7.13
-Release:       1
-License:       GPL
+Version:       2.0.1
+Release:       2
+License:       GPL v2+
 Group:         Applications/File
+Source0:       http://ftp.gnu.org/gnu/vcdimager/%{name}-%{version}.tar.gz
+# Source0-md5: 3890d73da62d0607c87962c41cd33a29
+Patch0:                %{name}-info.patch
 URL:           http://www.gnu.org/software/vcdimager/
-Source0:       http://www.vcdimager.org/pub/vcdimager/vcdimager-0.7_UNSTABLE/%{name}-%{version}.tar.gz
-Patch0:                %{name}-m4.patch
-BuildRequires: libtool
-BuildRequires: automake
-BuildRequires: autoconf
-BuildRequires: libxml2-devel >= 2.3.8
-Requires:      libxml2 >= 2.3.8
-BuildRequires: popt-devel
-Requires:      popt
-Requires:      fix-info-dir
-# required only for m4 macros
-##BuildRequires:       gnome-libs-devel
-##BuildRequires:       popt-devel
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1.6.0
+BuildRequires: help2man
+BuildRequires: libcdio-devel >= 2.0.0
+BuildRequires: libtool >= 1:1.4.2-9
+BuildRequires: libxml2-devel >= 1:2.6.11
+BuildRequires: pkgconfig
+BuildRequires: popt-devel >= 1.7
 BuildRequires: texinfo
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires(post,postun): /sbin/ldconfig
+Requires:      libcdio >= 2.0.0
+Requires:      libxml2 >= 1:2.6.11
+Requires:      popt >= 1.7
+Obsoletes:     vcdimager-cdio
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 VCDImager allows you to create VideoCD BIN/CUE CD images from mpeg
@@ -30,26 +37,54 @@ reverse operation. That is, ripping mpeg streams from images (and
 already burned VideoCDs) and showing some information about the
 VideoCD.
 
-%description -l pl
-VCDImager pozwala Ci na tworzenie obrazów VideoCD BIN/CUE z plików
-mpeg, które nastêpnie mog± byæ wypalone za pomoc± cdrdao lub innego
-programu zdolnego do wypalania plików BIN/CUE. VCDRip dostarczany wraz
-z VCDImager pozwala na wykonanie odwrotnej operacji tzn. zrzucenia
-strumienia mpeg z obrazów (oraz ju¿ wypalonych p³yt VideoCD).
+%description -l pl.UTF-8
+VCDImager służy do tworzenia obrazów VideoCD BIN/CUE z plików mpeg,
+które następnie mogą być wypalone za pomocą cdrdao lub innego programu
+zdolnego do wypalania plików BIN/CUE. VCDRip dostarczany wraz z
+VCDImager pozwala na wykonanie odwrotnej operacji tzn. zrzucenia
+strumienia mpeg z obrazów (oraz już wypalonych płyt VideoCD).
+
+%package devel
+Summary:       Header files for vcd libraries
+Summary(pl.UTF-8):     Pliki nagłówkowe bibliotek vcd
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libcdio-devel >= 2.0.0
+Obsoletes:     vcdimager-cdio-devel
+
+%description devel
+Header files for vcd libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek vcd.
+
+%package static
+Summary:       Static vcd libraries
+Summary(pl.UTF-8):     Statyczne biblioteki vcd
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Obsoletes:     vcdimager-cdio-static
+
+%description static
+Static vcd libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki vcd.
 
 %prep
 %setup -q
 %patch0 -p1
 
-
-
 %build
-rm -f missing
 %{__libtoolize}
-%{__aclocal} -I ./
+%{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --enable-maintainer-mode \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -58,19 +93,51 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvcdinfo.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
 %postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS ChangeLog FAQ NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/cdxa2mpeg
+%attr(755,root,root) %{_bindir}/vcd-info
+%attr(755,root,root) %{_bindir}/vcdimager
+%attr(755,root,root) %{_bindir}/vcdxbuild
+%attr(755,root,root) %{_bindir}/vcdxgen
+%attr(755,root,root) %{_bindir}/vcdxminfo
+%attr(755,root,root) %{_bindir}/vcdxrip
+%attr(755,root,root) %{_libdir}/libvcdinfo.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvcdinfo.so.0
+%{_mandir}/man1/cdxa2mpeg.1*
+%{_mandir}/man1/vcd-info.1*
+%{_mandir}/man1/vcdimager.1*
+%{_mandir}/man1/vcdxbuild.1*
+%{_mandir}/man1/vcdxgen.1*
+%{_mandir}/man1/vcdxminfo.1*
+%{_mandir}/man1/vcdxrip.1*
+%{_infodir}/vcd-info.info*
+%{_infodir}/vcdimager.info*
+%{_infodir}/vcdxrip.info*
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libvcdinfo.so
+%{_includedir}/libvcd
+%{_pkgconfigdir}/libvcdinfo.pc
 
-%files
+%if %{with static_libs}
+%files static
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_infodir}/*info*
-%{_mandir}/man?/*
+%{_libdir}/libvcdinfo.a
+%endif
This page took 0.077387 seconds and 4 git commands to generate.