From 070971f300e74c155ce5d1ca3fd2e593e9149f5c Mon Sep 17 00:00:00 2001 From: Brendan Jones Date: Thu, 2 Feb 2012 07:16:18 +0100 Subject: [PATCH] Initial import of SRPM --- .gitignore | 1 + sord.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 88 insertions(+) create mode 100644 sord.spec diff --git a/.gitignore b/.gitignore index e69de29..1198295 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sord-0.5.0.tar.bz2 diff --git a/sord.spec b/sord.spec new file mode 100644 index 0000000..79b8565 --- /dev/null +++ b/sord.spec @@ -0,0 +1,86 @@ +%global maj 0 + +Name: sord +Version: 0.5.0 +Release: 3%{?dist} +Summary: A lightweight Resource Description Framework (RDF) C library + +Group: System Environment/Libraries +License: ISC +URL: http://drobilla.net/software/sord/ +Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2 + +BuildRequires: boost-devel +BuildRequires: doxygen +BuildRequires: graphviz +BuildRequires: glib2-devel +BuildRequires: python +BuildRequires: serd-devel >= 0.5.0 + +%description +%{name} is a lightweight C library for storing Resource Description +Framework (RDF) data in memory. %{name} and parent library serd form +a lightweight RDF tool-set for resource limited or performance critical +applications. + +%package devel +Summary: Development libraries and headers for %{name} +Group: Development/Libraries +Requires: %{name}%{_isa} = %{version}-%{release} + +%description devel +%{name} is a lightweight C library for storing Resource Description +Framework (RDF) data in memory. + +This package contains the headers and development libraries for %{name}. + +%prep +%setup -q +# we'll run ldconfig, and add our optflags +sed -i -e "s|bld.add_post_fun(autowaf.run_ldconfig)||" \ + -e "s|cflags = [ '-DSORD_INTERNAL' ]\ +|cflags = [ '-DSORD_INTERNAL' ] + '%optflags'.split(' ') |" wscript + +%build +export CXXFLAGS="%{optflags}" +export CFLAGS="%{optflags}" +./waf configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} \ + --datadir=%{_datadir} \ + --docdir=%{_docdir}/%{name}-devel-%{version} \ + --test \ + --docs +./waf build -v %{?_smp_mflags} + +%install +DESTDIR=%{buildroot} ./waf install +chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.* + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS ChangeLog README COPYING +%{_libdir}/lib%{name}-%{maj}.so.* +%{_bindir}/sordi +%{_mandir}/man1/sordi.1.gz + +%files devel +%{_libdir}/lib%{name}-%{maj}.so +%{_libdir}/pkgconfig/%{name}-%{maj}.pc +%{_includedir}/%{name}-%{maj}/ +%{_docdir}/%{name}-devel-%{version} +%{_mandir}/man3/%{name}.3.gz + +%changelog +* Thu Jan 19 2012 Brendan Jones - 0.5.0-3 +- Correct macros in description, expand summary. + +* Mon Jan 16 2012 Brendan Jones - 0.5.0-2 +- Correct macros in description, expand summary. + +* Fri Dec 23 2011 Brendan Jones - 0.5.0-1 +- Initial build diff --git a/sources b/sources index e69de29..9f47159 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +317ece12d3e69e7e789e941da4e7fd6b sord-0.5.0.tar.bz2