From 3932e873f105f34072246f4890839da3b7384009 Mon Sep 17 00:00:00 2001 From: Ivan Romanov Date: Mon, 29 Oct 2012 07:49:03 +0600 Subject: [PATCH] first version of package --- libnatspec.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 2 files changed, 98 insertions(+) create mode 100644 libnatspec.spec diff --git a/libnatspec.spec b/libnatspec.spec new file mode 100644 index 0000000..70ee812 --- /dev/null +++ b/libnatspec.spec @@ -0,0 +1,97 @@ +Summary: Library for national and language-specific issues +Name: libnatspec +Version: 0.2.6 +Release: 5%{?dist} + +License: LGPLv2 +Group: Development/Tools +Url: http://sourceforge.net/projects/natspec +Source: https://downloads.sourceforge.net/project/natspec/natspec/%{version}/%{name}-%{version}.tar.bz2 + +BuildRequires: popt-devel +BuildRequires: autoconf, automake, libtool + + +%description +Library for national and language-specific issues. +This library provides userful functions for +mount, submount, mkisofs, multimedia players. +This library try to help resolve charset hell (encoding problem) +in a various programs depends on locale and messages. + + +%package devel +Summary: Development package of library for national and language-specific issues +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and header files for +developing extensions for %{name}. + + +%prep +%setup -q + +# Fix permissions +chmod 644 profile/* +find examples -type f -exec chmod 644 {} \; + +pushd examples +iconv -f KOI8-R catpkt-1.0-alt-natspec.patch -t UTF-8 > catpkt-1.0-alt-natspec.patch.new +mv catpkt-1.0-alt-natspec.patch.new catpkt-1.0-alt-natspec.patch +popd + +iconv -f KOI8-R -t UTF-8 ChangeLog > ChangeLog.new +mv ChangeLog.new ChangeLog + +%build +autoreconf -fiv +%configure +make %{?_smp_mflags} + + +%install +make DESTDIR=%{buildroot} install +rm -f %{buildroot}%{_libdir}/*.la + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS README ChangeLog NEWS TODO README-ru.html +%{_libdir}/*.so.* +%{_bindir}/* +%{_mandir}/man1/* + + +%files devel +%doc examples profile +%{_includedir}/* +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/* +%{_datadir}/aclocal/* + + +%changelog +* Mon Oct 29 2012 Ivan Romanov - 0.2.6-5 +- dropped %%defattr +- corrected description + +* Sat Oct 27 2012 Ivan Romanov - 0.2.6-4 +- Fedora package +- Dropped unusual %%clean stage and rm in %%install stage +- Dropped BuildRoot +- Fixed make install +- Uses %%{_isa} +- profile and examplese moved to -devel subpackage +- Fixed group for main package +- added dos2unix to BR + +* Sat Mar 19 2011 Arkady L. Shane - 0.2.6-2 +- rebuilt + +* Sat Feb 6 2010 Arkady L. Shane - 0.2.6-1 +- initial build for Fedora diff --git a/sources b/sources index e69de29..a58817e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b57683f2e7be837992bffead1a6d3733 libnatspec-0.2.6.tar.bz2