]> git.pld-linux.org Git - packages/enca.git/commitdiff
- added apidocs bcond and subpackage auto/th/enca-1_9-3 auto/ti/enca-1_9-3
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Fri, 8 Jun 2007 16:27:56 +0000 (16:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 3

Changed files:
    enca.spec -> 1.20

enca.spec

index 57a48e412a2f07321b254065b2e7afe1ff65861d..154f9d90aafa04995dcf5988a3845de7f355cf49 100644 (file)
--- a/enca.spec
+++ b/enca.spec
@@ -1,12 +1,13 @@
 #
 # 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
 Name:          enca
 Version:       1.9
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Libraries
 Source0:       http://trific.ath.cx/Ftp/enca/%{name}-%{version}.tar.bz2
@@ -15,6 +16,7 @@ Patch0:               %{name}-libdir.patch
 URL:           http://trific.ath.cx/software/enca/
 BuildRequires: autoconf
 BuildRequires: automake
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
 BuildRequires: iconv
 %{?with_recode:BuildRequires:  recode-devel}
 Requires:      /bin/mktemp
@@ -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}
@@ -103,6 +118,8 @@ rm -rf $RPM_BUILD_ROOT
 rm -f $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
 
@@ -127,8 +144,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.la
 %{_includedir}/*.h
 %{_pkgconfigdir}/*.pc
-%{_gtkdocdir}/libenca
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libenca
+%endif
This page took 0.105178 seconds and 4 git commands to generate.