File libxdg-basedir.spec of Package libxdg-basedir

# norootforbuild

Name:             libxdg-basedir
Version:          1.1.0
%define soname 1
Release:          0
Summary:          XDG Base Directory Specification Library
# http://n.ethz.ch/~nevillm/download/libxdg-basedir/libxdg-basedir-%{version}.tar.gz
Source:           libxdg-basedir-%{version}.tar.bz2
Patch1:           libxdg-basedir-fixes.patch
Group:            System/Libraries
License:          MIT License
BuildRoot:        %{_tmppath}/build-%{name}-%{version}
BuildRequires:    pkgconfig
BuildRequires:    doxygen graphviz
BuildRequires:    gcc make glibc-devel
BuildRequires:    autoconf automake libtool update-desktop-files

%description
The XDG Base Directory Specification defines where should user files be looked
for by defining one or more base directories relative in with they should be
located.

This library implements functions to list the directories according to the
specification and provides a few higher-level functions.

%package -n %{name}%{soname}
Summary:          XDG Base Directory Specification Library
Group:            System/Libraries

%description -n %{name}%{soname}
The XDG Base Directory Specification defines where should user files be looked
for by defining one or more base directories relative in with they should be
located.

This library implements functions to list the directories according to the
specification and provides a few higher-level functions.

%package -n %{name}-devel
Summary:       XDG Base Directory Specification Library
Requires:      %{name}%{soname} = %{version}-%{release}
Group:         Development/Libraries/C and C++

%description -n %{name}-devel
The XDG Base Directory Specification defines where should user files be looked
for by defining one or more base directories relative in with they should be
located.

This library implements functions to list the directories according to the
specification and provides a few higher-level functions.

%prep
%setup -q -n "libxdg-basedir-%{version}"
%patch1

%build
%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%__rm "%{buildroot}%{_libdir}/libxdg-basedir.la"

%check
LD_LIBRARY_PATH="$PWD/src/.libs:$LD_LIBRARY_PATH" \
%__make check

%post   -n libxdg-basedir1 -p /sbin/ldconfig
%postun -n libxdg-basedir1 -p /sbin/ldconfig

%clean
%__rm -rf "%{buildroot}"

%files -n "%{name}%{soname}"
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libxdg-basedir.so.%{soname}
%{_libdir}/libxdg-basedir.so.%{soname}.*

%files -n "%{name}-devel"
%defattr(-,root,root)
%{_includedir}/basedir.h
%{_includedir}/basedir_fs.h
%{_libdir}/libxdg-basedir.so
%{_libdir}/libxdg-basedir.a
%{_libdir}/pkgconfig/libxdg-basedir.pc

%changelog
# vim: set sw=4 ts=4 et:
openSUSE Build Service is sponsored by