From b22d5bb37a5af17ca7c2cfe3fa9852acf5c9d7dc Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Sat, 1 Oct 2022 12:42:38 +0200 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/.gitkeeper | 0 SPECS/ots.spec | 179 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 SOURCES/.gitkeeper create mode 100644 SPECS/ots.spec diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/ots.spec b/SPECS/ots.spec new file mode 100644 index 0000000..8a9bdca --- /dev/null +++ b/SPECS/ots.spec @@ -0,0 +1,179 @@ +Name: ots +Summary: A text summarizer +Version: 0.5.0 +Release: 1%{?dist} + +License: GPLv2+ +URL: http://libots.sourceforge.net/ +Group: System Environment/Libraries + +Source0: http://prdownloads.sourceforge.net/libots/ots-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: glib2-devel >= 2.0 +BuildRequires: libxml2-devel >= 2.4.23 +BuildRequires: popt-devel >= 1.5 +BuildRequires: libtool + +Requires: %{name}-libs = %{version}-%{release} + +%description +The open text summarizer is an open source tool for summarizing texts. +The program reads a text and decides which sentences are important and +which are not. + + +%package devel +Summary: Libraries and include files for developing with libots +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +Requires: glib2-devel >= 2.0 +Requires: libxml2-devel >= 2.4.23 +Requires: popt-devel >= 1.5 +Requires: pkgconfig + +%description devel +This package provides the necessary development libraries and include +files to allow you to develop with libots. + + +%package libs +Summary: Shared libraries for %{name} +Group: Development/Libraries + +%description libs +The %{name}-libs package contains shared libraries used by %{name}. + + +%prep +%setup -q + + +%build +%configure --with-html-dir=%{_datadir}/gtk-doc/html/ots +# XXX: Disgusting kludge to fix upstream's broken package. +touch ./gtk-doc.make +%{__make} LIBTOOL=%{_bindir}/libtool + + +%install +rm -rf %{buildroot} +%{__make} install DESTDIR=%{buildroot} + + +%clean +rm -rf %{buildroot} + + +%post libs -p /sbin/ldconfig + + +%postun libs -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog NEWS README TODO +%{_bindir}/ots + +%files libs +%defattr(-,root,root,-) +%doc COPYING +%exclude %{_libdir}/*.a +%exclude %{_libdir}/*.la +%{_libdir}/libots-1.so.* +%{_datadir}/ots/ + +%files devel +%defattr(-,root,root,-) +%doc COPYING +%{_libdir}/libots-1.so +%{_includedir}/libots-1/ +%{_libdir}/pkgconfig/libots-1.pc + + +%changelog +* Fri Feb 08 2008 Peter Gordon - 0.5.0-1 +- Update to new upstream release (0.5.0). +- Drop GCC4 patch (fixed upstream): + - 0.4.2-gcc4.patch + +* Mon Apr 23 2007 Peter Gordon - 0.4.2-11 +- Remove static libraries (%%_libdir/*.a). +- Fix %%defattr lines in the %%files listings. +- Lots of formatting/aesthetic fixes. +- Remove pkgconfig from build-time dependencies (required by glib2-devel and + libxml2-devel). +- Add LDFLAGS to fix shared library linking: libots-1.so.0 needs to link to + glib2 and libxml2 libraries to fix unresolved symbol errors. (Resolves bug + #237501; thanks to Matthias Clasen for the report). +- Split off libs subpackage to avoid potential multilib conflicts. + +* Mon Aug 27 2006 Michael J. Knox - 0.4.2-10 +- Rebuild for FC6 + +* Sun May 21 2006 Michael J. Knox - 0.4.2-9 +- rebuild and spec tidy + +* Sun May 22 2005 Jeremy Katz - 0.4.2-7 +- rebuild on all arches + +* Wed Mar 16 2005 Toshio Kuratomi - 0.4.2-5 +- Reenable man page. +- Disable rebuilding documentation via configure switch instead of an automake + requiring patch. +- Remove the API documentation for now as it is just a placeholder. + +* Wed Mar 2 2005 Caolan McNamara - 0.4.2-4 +- rebuild with gcc4 +- small lvalue assign patch + +* Wed Feb 09 2005 Caolan McNamara - 0.4.2-3 +- rebuilt + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Thu Feb 19 2004 Jeremy Katz - 0.4.2-1 +- 0.4.2 + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Fri Nov 28 2003 Jeremy Katz +- add some buildrequires (#111158) + +* Mon Sep 15 2003 Jeremy Katz 0.4.1-1 +- 0.4.1 + +* Mon Aug 4 2003 Jeremy Katz 0.4.0-1 +- 0.4.0 + +* Tue Jul 22 2003 Jeremy Katz 0.3.0-1 +- update to 0.3.0 + +* Sat Jul 12 2003 Jeremy Katz 0.2.0-2 +- forcibly disable gtk-doc (openjade is busted on s390) + +* Mon Jul 7 2003 Jeremy Katz 0.2.0-1 +- update to 0.2.0 +- ldconfig in %%post/%%postun +- libtoolize +- clean up spec file a little, build gtk-doc +- fix libtool versioning + +* Thu Jun 05 2003 Rui Miguel Silva Seabra +- fix spec +- disable gtk-doc (it's not building in RH 9, + maybe it's broken for some reason) + +* Fri May 02 2003 Rui Miguel Silva Seabra +- define a longer description from the README file +- explicitly set file permissions + +* Wed Apr 30 2003 Dom Lachowicz +- created this thing