]> git.pld-linux.org Git - packages/enca.git/blobdiff - enca.spec
- new URLs; updated to 1.14
[packages/enca.git] / enca.spec
index 8e83cbc397e142f2eabcea8c3b843c8c366b1118..2903286f76a96643642dc896e40bdb523917be9e 100644 (file)
--- a/enca.spec
+++ b/enca.spec
@@ -1,20 +1,22 @@
 #
 # Conditional build:
+%bcond_without apidocs # disable gtk-doc
 %bcond_without recode  # build without recode support
 #
 Summary:       Extremely Naive Charset Analyser
-Summary(pl.UTF-8):   Skrajnie naiwny analizator zestawów znaków
+Summary(pl.UTF-8):     Skrajnie naiwny analizator zestawów znaków
 Name:          enca
-Version:       1.9
-Release:       2
+Version:       1.14
+Release:       1
 License:       GPL v2
 Group:         Libraries
-Source0:       http://trific.ath.cx/Ftp/enca/%{name}-%{version}.tar.bz2
-# Source0-md5: b3581e28d68d452286fb0bfe58bed3b3
+Source0:       http://dl.cihar.com/enca/%{name}-%{version}.tar.bz2
+# Source0-md5: 03792f25aed003d3ea33b3ce1be1f256
 Patch0:                %{name}-libdir.patch
-URL:           http://trific.ath.cx/software/enca/
-BuildRequires: autoconf
-BuildRequires: automake
+URL:           http://cihar.com/software/enca/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1:1.8
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
 BuildRequires: iconv
 %{?with_recode:BuildRequires:  recode-devel}
 Requires:      /bin/mktemp
@@ -46,7 +48,7 @@ wielobajtowe (głównie warianty unikodu) niezależnie od języka.
 
 %package libs
 Summary:       Shared Enca library
-Summary(pl.UTF-8):   Biblioteka współdzielona Enca
+Summary(pl.UTF-8):     Biblioteka współdzielona Enca
 Group:         Libraries
 
 %description libs
@@ -59,7 +61,7 @@ wykorzystywana przez inne programy.
 
 %package devel
 Summary:       Header files for ENCA library
-Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki ENCA
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki ENCA
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
@@ -71,7 +73,7 @@ Pliki nagłówkowe biblioteki ENCA.
 
 %package static
 Summary:       Static ENCA library
-Summary(pl.UTF-8):   Statyczna biblioteka ENCA
+Summary(pl.UTF-8):     Statyczna biblioteka ENCA
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
@@ -81,6 +83,18 @@ Static ENCA library.
 %description static -l pl.UTF-8
 Statyczna biblioteka ENCA.
 
+%package apidocs
+Summary:       ENCA library API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki ENCA
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+ENCA library API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki ENCA.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -90,6 +104,7 @@ cp -f /usr/share/automake/config.sub .
 %{__autoconf}
 %configure \
        MKTEMP_PROG=/bin/mktemp \
+       --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
        --with-html-dir=%{_gtkdocdir}
 
 %{__make}
@@ -100,9 +115,11 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
 
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -112,23 +129,31 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/enca
+%attr(755,root,root) %{_bindir}/enconv
 %attr(755,root,root) %{_libexecdir}/enca
-%{_mandir}/man1/*
+%{_mandir}/man1/enca.1*
+%{_mandir}/man1/enconv.1*
 
 %files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libenca.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libenca.so.0
 
 %files devel
 %defattr(644,root,root,755)
 %doc README.devel
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*.h
-%{_pkgconfigdir}/*.pc
-%{_gtkdocdir}/libenca
+%attr(755,root,root) %{_libdir}/libenca.so
+%{_libdir}/libenca.la
+%{_includedir}/enca.h
+%{_pkgconfigdir}/enca.pc
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libenca.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libenca
+%endif
This page took 0.214139 seconds and 4 git commands to generate.