~ubuntu-branches/ubuntu/feisty/argtable2/feisty

« back to all changes in this revision

Viewing changes to argtable.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Shachar Shemesh
  • Date: 2006-11-14 16:13:36 UTC
  • mfrom: (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061114161336-k2z40o650zfi7pjx
Tags: 6-3
* Update maintainer's email address (now a Debian Developer)
* Update the policy version to 3.7.2 (no changes required)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#################################################################################
2
 
# RPM spec file for argtable
3
 
#
4
 
# See http://www.rpm.org/max-rpm for a good discussion on building rpm packages
5
 
#
6
 
# Note: the argtable configure script generates the argtable.spec
 
2
# RPM spec file for argtable2
 
3
#
 
4
# Note: the argtable2 configure script generates the argtable.spec
7
5
#       file from the argtable.spec.in template.
8
6
#################################################################################
9
7
 
10
8
Summary: An ANSI C library for parsing GNU style command line arguments.
11
 
Name: argtable 
12
 
Version: 2.@PACKAGE_VERSION@
13
 
Release: 0
14
 
Copyright: LGPL
 
9
Name: argtable2 
 
10
Version: @PACKAGE_VERSION@
 
11
Release: 1
 
12
License: LGPL
15
13
Group: Development/Libraries
16
 
Source: http://prdownloads.sourceforge.net/argtable/argtable-2.@PACKAGE_VERSION@.tar.gz
 
14
Source: http://prdownloads.sourceforge.net/argtable/argtable2-@PACKAGE_VERSION@.tar.gz
17
15
URL: http://argtable.sourceforge.net
18
16
Packager: Stewart Heitmann <sheitmann@users.sourceforge.net>
19
17
Prefix: /usr/local
 
18
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
20
19
 
21
20
%description
22
21
Argtable is an ANSI C library for parsing GNU style command line arguments.
30
29
the command line syntax directly from the array of argument specifications.
31
30
 
32
31
%prep
33
 
#remove any old build tree for this package then untar a fresh one
34
 
rm -rf $RPM_BUILD_DIR/argtable2
35
 
tar -xvzf $RPM_SOURCE_DIR/argtable-2.@PACKAGE_VERSION@.tar.gz
 
32
%setup -q
36
33
 
37
34
%build
38
 
cd argtable2
39
 
./configure  --prefix=/usr/local
 
35
%configure
40
36
make
41
37
 
42
38
%install
43
 
cd argtable2
44
 
make install
 
39
rm -fr %{buildroot}
 
40
 
 
41
%makeinstall
45
42
 
46
43
%clean
47
 
cd argtable2
48
 
make clean
 
44
rm -fr %{buildroot}
 
45
rm -rf ../argtable2-@PACKAGE_VERSION@
49
46
 
50
47
%files
51
 
/usr/local/include/argtable2.h
52
 
/usr/local/lib/libargtable2.a
53
 
/usr/local/lib/libargtable2.so.@PACKAGE_VERSION@
54
 
/usr/local/lib/libargtable2.so
55
 
%docdir /usr/local/share/doc/argtable2
56
 
/usr/local/share/doc/argtable2
57
 
%doc /usr/local/man/man3/argtable2.3
 
48
%defattr(-,root,root,-) 
 
49
%{_includedir}/*
 
50
%{_libdir}/* 
 
51
%{_mandir}/* 
 
52
%{_defaultdocdir}
58
53
 
59
54
%post