]> git.pld-linux.org Git - packages/perl-Class-Observable.git/commitdiff
- new, STBR
authorradek <radek@pld-linux.org>
Sun, 25 Aug 2002 15:20:33 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Class-Observable.spec -> 1.1

perl-Class-Observable.spec [new file with mode: 0644]

diff --git a/perl-Class-Observable.spec b/perl-Class-Observable.spec
new file mode 100644 (file)
index 0000000..7a0d792
--- /dev/null
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Class
+%define        pnam    Observable
+Summary:       Class::Observable - Allow other classes and objects to respond to events in yours
+#Summary(pl):  
+Name:          perl-Class-Observable
+Version:       0.03
+Release:       1
+License:       GPL/Artistic
+Group:         Development/Languages/Perl
+Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-26
+%if %{?_without_tests:0}%{!?_without_tests:1}
+BuildRequires: perl-Class-ISA >= 0.32
+BuildRequires: perl-Test-Simple >= 0.40
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+If you have ever used Java, you may have run across the
+C<java.util.Observable> class and the C<java.util.Observer>
+interface. Using them, you can decouple an object from the one or more
+objects that wish to be notified whenever particular events occur.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+
+%{!?_without_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_sitelib}/%{pdir}/*.pm
+%{_mandir}/man3/*
This page took 0.075179 seconds and 4 git commands to generate.