packages: libvterm/libvterm.spec (NEW)=?UTF-8?Q?=20?=- new - FIXME: there is no soname an...

witekfl witekfl at pld-linux.org
Sun Feb 5 18:21:45 CET 2012


Author: witekfl                      Date: Sun Feb  5 17:21:45 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new
- FIXME: there is no soname and the static library is not built

---- Files affected:
packages/libvterm:
   libvterm.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libvterm/libvterm.spec
diff -u /dev/null packages/libvterm/libvterm.spec:1.1
--- /dev/null	Sun Feb  5 18:21:45 2012
+++ packages/libvterm/libvterm.spec	Sun Feb  5 18:21:40 2012
@@ -0,0 +1,102 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+# TODO: static amd soname
+
+Summary:	libvterm library
+Summary(pl.UTF-8):	Bilblioteka libvterm
+Name:		libvterm
+Version:	0.99.7
+Release:	0.1
+License:	GPLv2+
+Group:		Libraries
+Source0:	http://download.sourceforge.net/libvterm/%{name}-%{version}.tar.gz
+# Source0-md5:	ac68b77eb33086f7532ab303245efb77
+URL:		http://libvterm.sourceforge.net/
+BuildRequires:	glib2-devel
+BuildRequires:	ncurses-devel
+BuildRequires:	pkg-config
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+BuildRequires:	rpmbuild(macros) >= 1.583
+
+%description
+libvterm library.
+
+%description -l pl.UTF-8
+Biblioteka libvterm.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q -n %{name}
+
+%build
+%{__cc} %{rpmcflags} -D_REENTRANT -I/usr/include/ncurses -c -fPIC *.c `pkg-config --cflags glib-2.0`
+LDFLAGS="%{rpmldflags}" %{__cc} -shared -o libvterm.so -lutil *.o
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/{%{_libdir},%{_includedir}}
+install libvterm.so $RPM_BUILD_ROOT/%{_libdir}
+install vterm.h $RPM_BUILD_ROOT/%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG
+%attr(755,root,root) %{_libdir}/%{name}.so
+#%attr(755,root,root) %ghost %{_libdir}/%{name}.so.N
+
+%files devel
+%defattr(644,root,root,755)
+%doc API demo/*
+%{_includedir}/vterm.h
+
+%if 0
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/%{name}.a
+%endif
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/02/05 17:21:40  witekfl
+- new
+- FIXME: there is no soname and the static library is not built
+
================================================================


More information about the pld-cvs-commit mailing list