Accepting request 131040 from devel:libraries:c_c++

Needed by lilv

OBS-URL: https://build.opensuse.org/request/show/131040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sord?expand=0&rev=1
This commit is contained in:
Ismail Dönmez 2012-08-22 10:17:34 +00:00 committed by Git OBS Bridge
commit 2ae986ab75
6 changed files with 173 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

20
sord-0.8.0-no_g++.patch Normal file
View File

@ -0,0 +1,20 @@
Index: wscript
===================================================================
--- wscript.orig
+++ wscript
@@ -28,7 +28,6 @@ out = 'build'
def options(opt):
opt.load('compiler_c')
- opt.load('compiler_cxx')
autowaf.set_options(opt)
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests")
@@ -39,7 +38,6 @@ def options(opt):
def configure(conf):
conf.load('compiler_c')
- conf.load('compiler_cxx')
autowaf.configure(conf)
autowaf.display_header('Sord configuration')

3
sord-0.8.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:99df73a0a859fbfc6423a7d5930d019c8c0e17e04ed101114c54f1911dbd8a59
size 286325

14
sord.changes Normal file
View File

@ -0,0 +1,14 @@
-------------------------------------------------------------------
Thu Aug 16 14:25:48 UTC 2012 - reddwarf@opensuse.org
- Fix main package metadata
- Install sord_validate man page
- Created a libsord-docs subpackage to let multiple devel packages
with different APIs to be installed at the same time
-------------------------------------------------------------------
Wed Aug 8 22:29:36 UTC 2012 - reddwarf@opensuse.org
- First version of the package
- Added sord-0.8.0-no_g++.patch

112
sord.spec Normal file
View File

@ -0,0 +1,112 @@
#
# spec file for package sord
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define soname 0
Name: sord
Version: 0.8.0
Release: 0
Summary: Utilities to work with RDF data
License: ISC
Group: Productivity/File utilities
Url: http://drobilla.net/software/sord/
Source0: http://download.drobilla.net/sord-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM sord-0.8.0-no_g++.patch bugtracker_didn't_work reddwarf@opensuse.org -- We don't need C++
Patch0: sord-0.8.0-no_g++.patch
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: pkg-config
BuildRequires: python-base
BuildRequires: pkgconfig(serd-0) >= 0.14.0
%description
Utilities to work with RDF data.
%package -n libsord-0-%{soname}
Summary: A lightweight C library for storing RDF data in memory
Group: System/Libraries
%description -n libsord-0-%{soname}
A lightweight C library for storing RDF data in memory.
%package -n libsord-0-devel
Summary: Development files for libsord
Group: Development/Libraries/C and C++
Requires: libsord-0-%{soname} = %{version}
Suggests: libsord-docs
%description -n libsord-0-devel
Development files for libsord.
# Upstream does not want versioned documentation
%package -n libsord-docs
Summary: Documentation about the libsord API
Group: Documentation/Other
%description -n libsord-docs
Documentation about the libsord API.
%prep
%setup -q
%patch0
%build
export CFLAGS='%{optflags}'
export CXXFLAGS='%{optflags}'
./waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--docdir=%{_defaultdocdir} \
--docs
# waf only understands -j, so do not use smp_mflags
./waf build -v %{?jobs:-j%jobs}
%install
./waf install --destdir=%{?buildroot}
# http://dev.drobilla.net/ticket/852
cp -p doc/sord_validate.1 %{buildroot}%{_mandir}/man1/sord_validate.1
%post -n libsord-0-%{soname} -p /sbin/ldconfig
%postun -n libsord-0-%{soname} -p /sbin/ldconfig
%files
%defattr(0644,root,root,0755)
%attr(0755,-,-) %{_bindir}/sordi
%attr(0755,-,-) %{_bindir}/sord_validate
%{_mandir}/man1/sordi.1*
%{_mandir}/man1/sord_validate.1*
%files -n libsord-0-%{soname}
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libsord-0.so.%{soname}*
%files -n libsord-0-devel
%defattr(0644,root,root,0755)
%{_libdir}/libsord-0.so
%{_includedir}/sord-0/
%{_libdir}/pkgconfig/sord-0.pc
%files -n libsord-docs
%defattr(0644,root,root,0755)
%{_defaultdocdir}/sord/
%{_mandir}/man3/*
%changelog