just some spec beautification
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libstfl?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
e617b3be54
commit
a89895b06c
80
libstfl.spec
80
libstfl.spec
@@ -1,32 +1,31 @@
|
||||
# norootforbuild
|
||||
# vim: set sw=4 ts=4 et:
|
||||
|
||||
%define soname 0
|
||||
|
||||
Name: libstfl
|
||||
Version: 0.21
|
||||
Release: 0
|
||||
Summary: Structured Terminal Forms Library
|
||||
Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz
|
||||
Source99: rpmlintrc
|
||||
Patch1: stfl-optflags.patch
|
||||
Patch2: stfl-ncurses.patch
|
||||
URL: http://www.clifford.at/stfl/
|
||||
Group: System/Libraries
|
||||
License: GNU Lesser General Public License version 3 (LGPL v3)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
Name: libstfl
|
||||
Version: 0.21
|
||||
Release: 0
|
||||
Summary: Structured Terminal Forms Library
|
||||
Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz
|
||||
Source99: libstfl-rpmlintrc
|
||||
Patch1: stfl-optflags.patch
|
||||
Patch2: stfl-ncurses.patch
|
||||
URL: http://www.clifford.at/stfl/
|
||||
Group: System/Libraries
|
||||
License: GNU Lesser General Public License version 3 (LGPL v3)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
#BuildRequires: swig perl python python-devel ruby ruby-devel
|
||||
BuildRequires: ncurses-devel pkgconfig
|
||||
BuildRequires: gcc make glibc-devel
|
||||
BuildRequires: ncurses-devel pkgconfig
|
||||
BuildRequires: gcc make glibc-devel
|
||||
|
||||
%description
|
||||
.
|
||||
.............................................................................
|
||||
|
||||
%package -n libstfl%{soname}
|
||||
Summary: Structured Terminal Forms Library
|
||||
Group: System/Libraries
|
||||
Summary: Structured Terminal Forms Library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libstfl%{soname}
|
||||
|
||||
STFL is a library which implements a curses-based widget set for text
|
||||
terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby. Since
|
||||
the API is only 14 simple function calls big and there are already generic
|
||||
@@ -38,9 +37,9 @@ an application programmer does not need to spend ages fiddling around with the
|
||||
GUI and can concentrate on the more interesting programming tasks.
|
||||
|
||||
%package -n libstfl-devel
|
||||
Summary: Structured Terminal Forms Library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: ncurses-devel
|
||||
Summary: Structured Terminal Forms Library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: ncurses-devel
|
||||
Requires: libstfl%{soname} = %{version}
|
||||
|
||||
%description -n libstfl-devel
|
||||
@@ -62,25 +61,25 @@ GUI and can concentrate on the more interesting programming tasks.
|
||||
%build
|
||||
# -j breaks build
|
||||
%__make %{?jobs:-j%{jobs}} \
|
||||
prefix="%{_prefix}" \
|
||||
libdir="%{_lib}" \
|
||||
CC="%__cc" \
|
||||
OPTFLAGS="%{optflags}" \
|
||||
FOUND_SPL=0 \
|
||||
FOUND_SWIG=0 \
|
||||
FOUND_RUBY=0 \
|
||||
FOUND_PERL=0 \
|
||||
FOUND_PYTHON=0
|
||||
|
||||
prefix="%{_prefix}" \
|
||||
libdir="%{_lib}" \
|
||||
CC="%__cc" \
|
||||
OPTFLAGS="%{optflags}" \
|
||||
FOUND_SPL=0 \
|
||||
FOUND_SWIG=0 \
|
||||
FOUND_RUBY=0 \
|
||||
FOUND_PERL=0 \
|
||||
FOUND_PYTHON=0
|
||||
|
||||
%install
|
||||
%makeinstall \
|
||||
prefix="%{_prefix}" \
|
||||
libdir="%{_lib}" \
|
||||
FOUND_SPL=0 \
|
||||
FOUND_SWIG=0 \
|
||||
FOUND_RUBY=0 \
|
||||
FOUND_PERL=0 \
|
||||
FOUND_PYTHON=0
|
||||
prefix="%{_prefix}" \
|
||||
libdir="%{_lib}" \
|
||||
FOUND_SPL=0 \
|
||||
FOUND_SWIG=0 \
|
||||
FOUND_RUBY=0 \
|
||||
FOUND_PERL=0 \
|
||||
FOUND_PYTHON=0
|
||||
|
||||
[ -e "%{buildroot}%{_libdir}/libstfl.so.%{soname}" ] || {
|
||||
pushd "%{buildroot}%{_libdir}/"
|
||||
@@ -92,7 +91,7 @@ GUI and can concentrate on the more interesting programming tasks.
|
||||
%postun -n libstfl%{soname} -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
%__rm -rf "%{buildroot}"
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files -n libstfl%{soname}
|
||||
%defattr(-,root,root)
|
||||
@@ -108,4 +107,3 @@ GUI and can concentrate on the more interesting programming tasks.
|
||||
%{_libdir}/pkgconfig/stfl.pc
|
||||
|
||||
%changelog
|
||||
# vim: set sw=4 ts=4 et:
|
||||
|
Reference in New Issue
Block a user