summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2005-09-05 12:57:56 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit0a7d5111858172bd4ca08dae61bfa3855060e903 (patch)
treedf54b7e8c3d13c78a020791c7a8943d226cfe657
downloadperl-Lingua-EN-Numbers-Ordinate-0a7d5111858172bd4ca08dae61bfa3855060e903.zip
perl-Lingua-EN-Numbers-Ordinate-0a7d5111858172bd4ca08dae61bfa3855060e903.tar.gz
- new
Changed files: perl-Lingua-EN-Numbers-Ordinate.spec -> 1.1
-rw-r--r--perl-Lingua-EN-Numbers-Ordinate.spec53
1 files changed, 53 insertions, 0 deletions
diff --git a/perl-Lingua-EN-Numbers-Ordinate.spec b/perl-Lingua-EN-Numbers-Ordinate.spec
new file mode 100644
index 0000000..a05fd71
--- /dev/null
+++ b/perl-Lingua-EN-Numbers-Ordinate.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Lingua
+%define pnam EN-Numbers-Ordinate
+Summary: Lingua::EN::Numbers::Ordinate -- go from cardinal number (3) to ordinal ("3rd")
+Name: perl-Lingua-EN-Numbers-Ordinate
+Version: 1.02
+Release: 0.1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e92078fafd9108a137972c4e9bae9e99
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+There are two kinds of numbers in English -- cardinals (1, 2, 3...),
+and ordinals (1st, 2nd, 3rd...). This library provides functions for
+giving the ordinal form of a number, given its cardinal value.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%dir %{perl_vendorlib}/Lingua/EN/Numbers
+%{perl_vendorlib}/Lingua/EN/Numbers/Ordinate.pm
+%{_mandir}/man3/*