]> git.pld-linux.org Git - packages/autogen.git/blobdiff - autogen.spec
- updated to 5.14
[packages/autogen.git] / autogen.spec
index bf1a2f5da8940ba65f39c15fda1cea63583fd526..b44d81eefa2408bb10355340c64404c7ab0b6bce 100644 (file)
@@ -1,18 +1,23 @@
-%define        pre     pre4
 Summary:       Automated program generator
 Summary(pl.UTF-8):     Zautomatyzowany generator programów
 Name:          autogen
-Version:       5.13.0
-Release:       0.%{pre}.1
-License:       GPL v.2/BSD/LGPL
-Group:         Development
-Source0:       http://autogen.sourceforge.net/data/%{name}-%{version}%{pre}.tar.xz
-# Source0-md5: 86f80b060d82ab1069043b3478df195f
+Version:       5.14
+Release:       1
+License:       GPL v3+ (AutoGen), LGPL v3+ or Modified BSD (AutoOpts library)
+Group:         Development/Tools
+Source0:       http://ftp.gnu.org/gnu/autogen/rel5.14/%{name}-%{version}.tar.xz
+# Source0-md5: f82648739393ce5eba4c33ecd25df488
+Patch0:                %{name}-notinstalled.patch
+Patch1:                %{name}-info.patch
 URL:           http://autogen.sourceforge.net/
 BuildRequires: guile-devel
 BuildRequires: libltdl-devel
 BuildRequires: libxml2-devel
+BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo
+BuildRequires: xz
+Requires:      %{name}-libs = %{version}-%{release}
+Suggests:      %{name}-devel = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,32 +35,49 @@ ilości powtórzonego tekstu. Jest szczególnie wartościowy jeśli jest
 kilka bloków takiego tekstu, które muszą być synchronizowane
 równolegle.
 
+%package libs
+Summary:       Shared AutoOpts library
+Summary(pl.UTF-8):     Biblioteka współdzielona AutoOpts
+License:       LGPL v3+ or Modified BSD
+Group:         Libraries
+Conflicts:     autogen < 5.14
+
+%description libs
+Shared AutoOpts library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona AutoOpts.
+
 %package devel
-Summary:       Header files for autogen
-Summary(pl.UTF-8):     Pliki nagłówkowe dla autogen
+Summary:       Header files for AutoOpts library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki AutoOpts
+License:       LGPL v3+ or Modified BSD
 Group:         Development/Libraries
-Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
-Header files for autogen.
+Header files for AutoOpts library.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe dla autogen.
+Pliki nagłówkowe biblioteki AutoOpts.
 
 %package static
-Summary:       Static autogen library
-Summary(pl.UTF-8):     Statyczna biblioteka autogen
+Summary:       Static AutoOpts library
+Summary(pl.UTF-8):     Statyczna biblioteka AutoOpts
+License:       LGPL v3+ or Modified BSD
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-Static autogen library.
+Static AutoOpts library.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka autogen.
+Statyczna biblioteka AutoOpts.
 
 %prep
-%setup -q -n %{name}-%{version}%{pre}
+%setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
 %configure
@@ -68,37 +90,54 @@ install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# .pc file is arch-dependent, so use arch-dependent pkgconfigdir
 mv $RPM_BUILD_ROOT%{_datadir}/pkgconfig/autoopts.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
 %postun
-/sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_bindir}/autogen
+%attr(755,root,root) %{_bindir}/columns
+%attr(755,root,root) %{_bindir}/getdefs
+%attr(755,root,root) %{_bindir}/xml2ag
 %{_datadir}/%{name}
 %{_infodir}/autogen.info*
-%{_mandir}/man1/*.1*
-%{_mandir}/man3/*.3*
+%{_mandir}/man1/autogen.1*
+%{_mandir}/man1/columns.1*
+%{_mandir}/man1/getdefs.1*
+%{_mandir}/man1/xml2ag.1*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopts.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopts.so.25
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_bindir}/autoopts-config
+%attr(755,root,root) %{_libdir}/libopts.so
+%{_libdir}/libopts.la
 %{_includedir}/autoopts
-%{_aclocaldir}/*.m4
-%{_pkgconfigdir}/*.pc
+%{_aclocaldir}/autoopts.m4
+%{_pkgconfigdir}/autoopts.pc
+%{_mandir}/man1/autoopts-config.1*
+%{_mandir}/man3/ao_string_tokenize.3*
+%{_mandir}/man3/configFileLoad.3*
+%{_mandir}/man3/option*.3*
+%{_mandir}/man3/str*.3*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libopts.a
This page took 0.681283 seconds and 4 git commands to generate.