File: nss-pgsql.spec

package info (click to toggle)
libnss-pgsql 1.4.0debian-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 1,452 kB
  • ctags: 385
  • sloc: sh: 7,907; ansic: 1,106; xml: 392; makefile: 42; sql: 38
file content (49 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (4)
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
%define ver	1.4.0
%define rel 1
%define prefix /usr
%define sysconfdir /etc

Summary: PostgreSQL NSS module
Name: libnss-pgsql
Version: %ver
Release: %rel
Copyright: GPL 2.0
Group: System Environment/Libraries
Source: libnss-pgsql-%{PACKAGE_VERSION}.tar.gz
URL: http://www.pgfoundry.org/projects/sysauth/
BuildRoot: /tmp/libnss-pgsql-%{PACKAGE_VERSION}-build
Packager: Bret Mogilefsky <mogul-sysauth-pgsql@gelatinous.com>

%description
libnss-pgsql is a name service switch module that allows the 
replacement of flatfile passwd, group and shadow lookups with a 
PostgreSQL backend.

%prep
%setup
cd $RPM_BUILD_DIR/%{name}-%{version}
mkdir -p %{bldroot}%{prefix}
cd $RPM_BUILD_DIR/%{name}-%{version}
./configure --prefix=%{prefix} --sysconfdir=%{sysconfdir}


%build
make

%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# mkdir ${RPM_BUILD_ROOT}%{sysconfdir}
# cp conf/nss-pgsql.conf ${RPM_BUILD_ROOT}%{sysconfdir}
# cp conf/nss-pgsql-root.conf ${RPM_BUILD_ROOT}%{sysconfdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc/nss-pgsql.txt doc/nss-pgsql.html doc/nss-pgsql.sgml
%{prefix}/lib/*.so*
%{prefix}/lib/*.la
# %attr(0644,root,root) %config(noreplace) %{sysconfdir}/nss-pgsql.conf
# %attr(0600,root,root) %config(noreplace) %{sysconfdir}/nss-pgsql-root.conf