Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fb3dac2ca4 | ||
|
b593bfb545 | ||
|
9c192ef0d5 | ||
|
ea5a4dbb80 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
libxdg-basedir-1.0.1.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: libxdg-basedir
|
||||
# $Id$
|
||||
NAME := libxdg-basedir
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
101
libxdg-basedir.spec
Normal file
101
libxdg-basedir.spec
Normal file
@ -0,0 +1,101 @@
|
||||
Name: libxdg-basedir
|
||||
Version: 1.0.1
|
||||
Release: 2%{?dist}
|
||||
Summary: Implementation of the XDG Base Directory Specifications
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: MIT
|
||||
URL: http://n.ethz.ch/student/nevillm/download/libxdg-basedir
|
||||
Source0: http://n.ethz.ch/student/nevillm/download/libxdg-basedir/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
|
||||
%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 devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation files for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: doxygen
|
||||
|
||||
%description doc
|
||||
The %{name}-doc package contains doxygen generated files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
make doxygen-run
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR="$RPM_BUILD_ROOT"
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc doc/html/
|
||||
|
||||
%changelog
|
||||
* Tue Jun 9 2009 Michal Nowak <mnowak@redhat.com> - 1.0.1-2
|
||||
- removed bogus ownership of %%{_libdir}/pkgconfig/
|
||||
- "docs" sub-package renamed to "doc"
|
||||
|
||||
* Mon Jun 8 2009 Michal Nowak <mnowak@redhat.com> - 1.0.1-1
|
||||
- 1.0.1
|
||||
- -devel: require pkgconfig, own %%{_libdir}/pkgconfig/
|
||||
- -docs: sub-package
|
||||
- make check tests
|
||||
- SPEC cleanups
|
||||
|
||||
* Thu May 7 2009 Michal Nowak <mnowak@redhat.com> - 1.0.0-1
|
||||
- 1.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user