Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfd0e59102 | ||
|
|
65402dfd04 | ||
|
|
df144edfec | ||
| 5de719c5cf |
5 changed files with 91 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
uriparser-0.7.1.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: uriparser
|
||||
# $Id$
|
||||
NAME := uriparser
|
||||
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)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
a0e04bcdec4083f24448e3aa28490ae9 uriparser-0.7.1.tar.gz
|
||||
89
uriparser.spec
Normal file
89
uriparser.spec
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
Name: uriparser
|
||||
Version: 0.7.1
|
||||
Release: 6%{?dist}
|
||||
Summary: URI parsing library - RFC 3986
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: BSD
|
||||
URL: http://%{name}.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: doxygen, graphviz
|
||||
%description
|
||||
Uriparser is a strictly RFC 3986 compliant URI parsing library written
|
||||
in C. uriparser is cross-platform, fast, supports Unicode and is
|
||||
licensed under the New BSD license.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
sed -i 's/\r//' THANKS
|
||||
sed -i 's/\r//' COPYING
|
||||
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
|
||||
mv THANKS{.utf8,}
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# doc folder has separate configure file
|
||||
cd doc;
|
||||
# fix for automated autotool calls
|
||||
touch aclocal.m4 configure Makefile.in
|
||||
%configure; make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc THANKS AUTHORS COPYING ChangeLog
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc doc/html
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Sat Sep 06 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-6
|
||||
- changed document file handling in spec, used better method - %%doc
|
||||
|
||||
* Fri Sep 05 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-5
|
||||
- fixed group, removed redundant args for %%setup
|
||||
- included ChangeLog, fixed html folder path in %%files
|
||||
- fixed automated autotool calls
|
||||
|
||||
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-4
|
||||
- changed name according to naming guidelines
|
||||
|
||||
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-3
|
||||
- fixed buildrequires tag
|
||||
|
||||
* Sun Aug 10 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-2
|
||||
- added documentation
|
||||
|
||||
* Sat Aug 9 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-1
|
||||
- Initial build
|
||||
Loading…
Add table
Add a link
Reference in a new issue