]> git.pld-linux.org Git - packages/ruby-shadow.git/blob - ruby-shadow.spec
install to vendor dir
[packages/ruby-shadow.git] / ruby-shadow.spec
1 %define pkgname shadow
2 Summary:        Ruby bindings for shadow password access
3 Name:           ruby-%{pkgname}
4 Version:        1.4.1
5 Release:        2
6 License:        Public Domain
7 Group:          Development/Languages
8 Source0:        http://ttsky.net/src/%{name}-%{version}.tar.gz
9 # Source0-md5:  425b742ac43bff359c1717360f761790
10 Patch0:         ruby-1.9-support.patch
11 Patch1:         cflags.patch
12 URL:            http://ttsky.net/
13 BuildRequires:  rpm-rubyprov
14 BuildRequires:  rpmbuild(macros) >= 1.665
15 BuildRequires:  ruby >= 1:1.8.6
16 BuildRequires:  ruby-devel
17 BuildRequires:  ruby-modules
18 BuildRequires:  setup.rb
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Ruby bindings for shadow password access.
23
24 %prep
25 %setup -q -n shadow-%{version}
26 %patch0 -p1
27 %patch1 -p1
28 iconv -f EUCJP -t utf8 -o README.ja README.euc
29
30 %build
31 %{__ruby} extconf.rb \
32         --vendor \
33         --with-cflags="%{rpmcflags}"
34 %{__make}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 %{__make} install \
39         DESTDIR=$RPM_BUILD_ROOT
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc HISTORY README
47 %doc %lang(ja) README.ja
48 %attr(755,root,root) %{ruby_vendorarchdir}/shadow.so
This page took 0.103987 seconds and 3 git commands to generate.