1 Summary: Library for dealing with deprecated functions
6 Source0: http://rubyforge.org/frs/download.php/40375/deprecated-%{version}.tar.gz
7 # Source0-md5: 10d0962965ee856c364be2bfe8f1c323
8 Group: Development/Languages
9 URL: http://deprecated.rubyforge.org/
10 BuildRequires: rpmbuild(macros) >= 1.277
11 BuildRequires: ruby-modules
12 BuildRequires: setup.rb
13 %{?ruby_mod_ver_requires_eq}
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 This is a small library intended to aid developers working with
18 deprecated code. The idea comes from the 'D' programming language,
19 where developers can mark certain code as deprecated, and then
20 allow/disallow the ability to execute deprecated code.
23 %setup -q -n deprecated-%{version}
24 install %{_datadir}/setup.rb .
27 ruby setup.rb config --rbdir=%{ruby_rubylibdir} --sodir=%{ruby_archdir}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
34 ruby setup.rb install --prefix=$RPM_BUILD_ROOT
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %{ruby_rubylibdir}/*.rb