gjs/gjs.spec

144 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: gjs
Version: 1.38.1
Release: 1mamba
Summary: GNOME JavaScript bindings based on gobject-introspection
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://live.gnome.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/gjs/%{majver}/gjs-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gobject-introspection-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libelf-devel
BuildRequires: libffi-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libmozjs1700-devel
BuildRequires: libnspr-devel
BuildRequires: libreadline-devel
BuildRequires: libselinux-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: pkg-config
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module contains JavaScript bindings based on gobject-introspection.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
## note: you can add this requirement if .pc files are provided by this package
#Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/gjs
%{_bindir}/gjs-console
%files -n lib%{name}
%defattr(-,root,root)
#%{_libdir}/libgjs-dbus.so.*
#%{_libdir}/libgjs-gdbus.so.*
%{_libdir}/libgjs.so.*
%{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib
%dir %{_datadir}/gjs-1.0
%{_datadir}/gjs-1.0/cairo.js
#%{_datadir}/gjs-1.0/dbus.js
%{_datadir}/gjs-1.0/format.js
%{_datadir}/gjs-1.0/gettext.js
%{_datadir}/gjs-1.0/jsUnit.js
%{_datadir}/gjs-1.0/lang.js
%{_datadir}/gjs-1.0/mainloop.js
%dir %{_datadir}/gjs-1.0/overrides
%{_datadir}/gjs-1.0/overrides/GLib.js
%{_datadir}/gjs-1.0/overrides/GObject.js
%{_datadir}/gjs-1.0/overrides/Gio.js
%{_datadir}/gjs-1.0/promise.js
%{_datadir}/gjs-1.0/signals.js
%dir %{_datadir}/gjs-1.0/tweener
%{_datadir}/gjs-1.0/tweener/equations.js
%{_datadir}/gjs-1.0/tweener/tweenList.js
%{_datadir}/gjs-1.0/tweener/tweener.js
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/gjs-1.0
%dir %{_includedir}/gjs-1.0/gi
%{_includedir}/gjs-1.0/gi/*.h
#%dir %{_includedir}/gjs-1.0/gjs-dbus
#%{_includedir}/gjs-1.0/gjs-dbus/*.h
%dir %{_includedir}/gjs-1.0/gjs
%{_includedir}/gjs-1.0/gjs/*.h
#%{_libdir}/libgjs-dbus.la
#%{_libdir}/libgjs-dbus.so
#%{_libdir}/libgjs-gdbus.la
#%{_libdir}/libgjs-gdbus.so
%{_libdir}/libgjs.la
%{_libdir}/libgjs.so
%{_libdir}/pkgconfig/gjs-1.0.pc
#%{_libdir}/pkgconfig/gjs-dbus-1.0.pc
%{_libdir}/pkgconfig/gjs-internals-1.0.pc
#%doc NEWS README
%changelog
* Thu Oct 31 2013 Automatic Build System <autodist@mambasoft.it> 1.38.1-1mamba
- automatic version update by autodist
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 1.36.1-1mamba
- automatic version update by autodist
* Sun Mar 31 2013 Automatic Build System <autodist@mambasoft.it> 1.36.0-1mamba
- automatic version update by autodist
* Fri Sep 28 2012 Automatic Build System <autodist@mambasoft.it> 1.34.0-1mamba
- automatic version update by autodist
* Sat Sep 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.32.0-2mamba
- typelib file moved from -devel to runtime library package
* Sat Sep 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.32.0-1mamba
- package created by autospec