summaryrefslogtreecommitdiff
path: root/libnw.spec
blob: 899c35eb5984d890a954388dea9e789ed3373d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# Conditional build:
%bcond_without static	# don't build static library
#
Summary:	libnw - NeverWinter Night game resources manupulation tool
Summary(pl):	libnw - narzędzia do edycji zasobów gry NeverWinter Night
Name:		libnw
Version:	1.30.02
Release:	1
License:	BSD
Group:		Applications/Games
Source0:	http://dl.sourceforge.net/openknights/%{name}-%{version}.tar.gz
# Source0-md5:	7c7dc1ca4d80710647f1d4401bdc654b
URL:		http://openknights.sourceforge.net/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	perl-base >= 5.6.0
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
libnw is a library of common routines for extracting and manipulating
resources from BioWare's NeverWinter Nights game.

%description -l pl
libnw to biblioteka wspólnych funkcji do wyciągania i przetwarzania
danych z gry NeverWinter Nights firmy BioWare.

%package devel
Summary:	Header files for libnw library
Summary(pl):	Pliki nagłówkowe biblioteki libnw
Group:		Development/Libraries
Requires:	%{name} = %{version}

%description devel
Header files for libnw library.

%description devel -l pl
Pliki nagłówkowe biblioteki libnw.

%package static
Summary:	Static libnw library
Summary(pl):	Statyczna biblioteka libnw
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}

%description static
Static libnw library.

%description static -l pl
Statyczna biblioteka libnw.

%package utils
Summary:	libnw - utilities programs
Summary(pl):	libnw - programy narzędziowe
Group:		Applications/Games
Requires:	%{name} = %{version}

%description utils
Several programs for extracting and manipulating resources from
BioWare's NeverWinter Nights game.

%description utils -l pl
Różne programy do wyciągania i przetwarzania zasobów z gry NeverWinter
Nights firmy BioWare.

%prep
%setup -q

%build
%{__libtoolize}
%{__aclocal}
%{__autoheader}
%{__automake}
%{__autoconf}
%configure \
	%{?_without_static:--disable-static}

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog NEWS README README.License-Torlack README.tech TODO
%attr(755,root,root) %{_libdir}/libnw.so.*.*.*
%attr(755,root,root) %{_libdir}/libnw.so
%{_datadir}/%{name}
%{_mandir}/man3/*

%files devel
%defattr(644, root, root, 755)
%{_libdir}/libnw.la
%{_includedir}/libnw

%if %{with static}
%files static
%defattr(644,root,root,755)
%{_libdir}/libnw.a
%endif

%files utils
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*