Name: fmt-ptrn
Version: 1.3.17
Release: 3%{?dist}
License: GPLv2+
Source: http://www.flyn.org/projects/%name/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL: http://www.flyn.org
Summary: A simple template system
Group: Development/Tools
Requires: zlib
BuildRequires: glib2-devel, zlib-devel, java-1.5.0-gcj-devel, libgcj-devel, junit
Patch0: fmt-ptrn-1.3.17.stack_name_conflict.patch
%description
New is a template system, especially useful in conjunction with a
simple text editor such as vi. The user maintains templates which
may contain format strings. At run time, nf replaces the format
strings in a template with appropriate values to create a new file.
For example, given the following template:
// FILE: %%(FILE)
// AUTHOR: %%(FULLNAME)
// DATE: %%(DATE)
// Copyright (C) 1999 %%(FULLNAME) %%(EMAIL)
// All rights reserved.
nf will create:
// FILE: foo.cpp
// AUTHOR: W. Michael Petullo
// DATE: 11 September 1999
// Copyright (C) 1999 W. Michael Petullo new@flyn.org
// All rights reserved.
on my computer.
The program understands plaintext or gziped template files.
The fmt-ptrn system also provides a shared library which allows a
programmer access to nf's functionality. The system was developed to
be light and fast. Its only external dependencies are the C library,
glib2 and zlib.
%files
%defattr(-, root, root, -)
%{_bindir}/*
%{_libdir}/libnewfmt-ptrn.so.1
%{_libdir}/libnewfmt-ptrn.so.%{PACKAGE_VERSION}
%{_libdir}/libnewtemplate.so.1
%{_libdir}/libnewtemplate.so.%{PACKAGE_VERSION}
%{_datadir}/fmt-ptrn
%{_mandir}/*/*
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README FAQ
%package devel
Summary: Files needed to develop applications using fmt-ptrn's libraries
Group: Development/Libraries
Requires: fmt-ptrn = %{version}-%{release}, glib2-devel, zlib-devel
%description devel
New is a template system, especially useful in conjunction with a
simple text editor such as vi. The user maintains templates which
may contain format strings. At run time, nf replaces the format
strings in a template with appropriate values to create a new file.
This package provides the libraries, include files, and other
resources needed for developing applications using fmt-ptrn's API.
%files devel
%defattr(-, root, root, -)
%{_libdir}/pkgconfig/fmt-ptrn.pc
%{_includedir}/fmt-ptrn
%{_libdir}/libnewfmt-ptrn.so
%{_libdir}/libnewtemplate.so
%package java
Summary: Files needed to develop applications using fmt-ptrn's Java classes
Group: Development/Libraries
Requires: fmt-ptrn = %{version}-%{release}
%description java
New is a template system, especially useful in conjunction with a
simple text editor such as vi. The user maintains templates which
may contain format strings. At run time, nf replaces the format
strings in a template with appropriate values to create a new file.
This package provides the resources needed for developing applications
using fmt-ptrn's Java classes.
%files java
%defattr(-, root, root, -)
%{_libdir}/libnewfmt-ptrnjni.so*
%{_libdir}/libnewfmt-ptrnjava.so*
%{_datadir}/java/*
%prep
%setup -q
%patch0 -p1 -b .stack_name_conflict.patch
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libnewfmt-ptrn.la
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libnewfmt-ptrnjni.la
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libnewfmt-ptrnjava.la
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libnewtemplate.la
# Delete the following 2 lines for building Java:
#rm -f ${RPM_BUILD_ROOT}%{_libdir}/libnewfmt-ptrnjni.*
#rm -f ${RPM_BUILD_ROOT}%{_datadir}/java/libnewfmt-ptrnjava.jar
%clean
rm -rf $RPM_BUILD_ROOT
%post
java -p /sbin/ldconfig
%postun
java -p /sbin/ldconfig
%changelog
* Thu Feb 12 2009 Caolán McNamara <caolanm@redhat.com> - 1.3.17-3
- rebuild for dependencies, rename stack_t to my_stack_t to
avoid conflict with /usr/include/bits/sigstack.h's stack_t
* Sun May 25 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.17-2
- Fixed placement of %%doc in RPM specification.
* Wed Apr 02 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.17-1
- Updated to fmt-ptrn 1.3.17.
* Tue Apr 01 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.16-1
- Updated to fmt-ptrn 1.3.16, should fix ppc64 build.
* Tue Apr 01 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.15-1
- Updated to fmt-ptrn 1.3.15.
* Tue Feb 12 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.14-1
- Updated to new 1.3.14.
* Mon Feb 11 2008 W. Michael Petullo <mike[@]flyn.org> - 1.3.13-2
- Update to use java-1.5.0-gcj-devel.
* Sat Dec 22 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.13-1
- Updated to new 1.3.13.
- License GPLv2+.
- Update make install command.
* Thu Dec 13 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.12-1
- Updated to new 1.3.12.
- Change package name to fmt-ptrn.
* Mon Oct 02 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.11-2
- Don't build static libraries.
* Tue Aug 21 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.11-1
- Updated to fmt-ptrn 1.3.11.
* Sun Aug 19 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.10-2
- Don't install INSTALL.
- Another %% fix.
- Run ldconfig for java package.
* Sat Aug 18 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.10-1
- Updated to new 1.3.10.
- Change license to GPLv2.
- Use %% in ChangeLog.
- Don't use %%makeinstall.
- deffattr(-,root,root,-).
- Don't install FmtPtrnTest.
- Don't use SMP build flags for now.
* Tue Aug 14 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.9-2
- Fix build (junit.o should not be distributed.)
* Sun Jul 29 2007 W. Michael Petullo <mike[@]flyn.org> - 1.3.9-1
- Updated to new 1.3.9.
- Build the Java package.
* Sun Sep 10 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.8-2
- BuildRequires Java tools.
* Sun Sep 10 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.8-1
- Updated to new 1.3.8.
- Create new Java package, comment out for now.
* Thu Sep 07 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.7-4
- Use _libdir macro for rm -rf of .a and .la (fix 64-bit build.)
* Thu Sep 07 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.7-3
- Rebuild for Fedora Extras 6.
* Fri Feb 17 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.7-2
- Rebuild for Fedora Extras 5.
* Thu Feb 02 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.7-1
- Updated to new 1.3.7.
* Wed Feb 01 2006 W. Michael Petullo <mike[@]flyn.org> - 1.3.6-1
- Updated to new 1.3.6.
* Sat Dec 24 2005 <W. Michael Petullo> - 1.3.5-3
- Add %%defattr for %%files devel.
* Tue Dec 13 2005 W. Michael Petullo <mike[@]flyn.org> - 1.3.5-2
- Broke out -devel package.
- Simplifies %%files block.
- Don't use %%doc %%{_mandir}.
- No empty NEWS or FAQ.
* Sun Dec 11 2005 W. Michael Petullo <mike[@]flyn.org> - 1.3.5-1
- Updated to new 1.3.5.
* Sun Dec 11 2005 W. Michael Petullo <mike[@]flyn.org> - 1.3.5-1
- Updated to new 1.3.5.