java-gstreamer/java-gstreamer.spec

90 lines
2.6 KiB
RPMSpec

Name: java-gstreamer
Epoch: 1
Version: 1.2.0
Release: 1mamba
Summary: Java interface to the gstreamer framework
Group: System/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/gstreamer-java/gst1-java-core
Source: https://github.com/gstreamer-java/gst1-java-core/releases/download/v%{version}/gst1-java-core-%{version}.jar
Source1: https://github.com/gstreamer-java/gst1-java-core/releases/download/v%{version}/gst1-java-core-%{version}-javadoc.jar
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: jpackage-utils
Requires: libgstreamer >= 1.18.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
An unofficial/alternative set of java bindings for the gstreamer multimedia framework.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
Java interface to the gstreamer framework.
This package contains javadoc for %{name}
%package swt
Summary: SWT support for %{name}
Group: System/Libraries/Java
Requires: %{name} = %{version}-%{release}
Requires: eclipse-swt
%description swt
Java interface to the gstreamer framework.
This package contains SWT support for %{name}.
%prep
%setup -q -c
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 %{SOURCE0} %{buildroot}%{_javadir}/gst1-java-core-%{version}.jar
ln -s gst1-java-core-%{version}.jar %{buildroot}%{_javadir}/gst1-java-core.jar
install -D -m0755 %{SOURCE1} %{buildroot}%{_javadir}/gst1-java-core-%{version}-javadoc.jar
ln -s gst1-java-core-%{version}-javadoc.jar %{buildroot}%{_javadir}/gst1-java-core-javadoc.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/gst1-java-core-%{version}.jar
%{_javadir}/gst1-java-core.jar
%files javadoc
%defattr(-,root,root)
%{_javadir}/gst1-java-core-%{version}-javadoc.jar
%{_javadir}/gst1-java-core-javadoc.jar
#%files swt
#%defattr(-,root,root)
#%{_javadir}/gstreamer-java-swt.jar
%changelog
* Mon Oct 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- update to 1.2.0
* Sun Jan 16 2011 gil <puntogil@libero.it> 1.4-2mamba
- rebuilt devel
- add new sub package swt
- built with java-openjdk support
* Thu Jul 08 2010 gil <puntogil@libero.it> 1.4-1mamba
- update to 1.4
* Thu Apr 29 2010 gil <puntogil@libero.it> 1.3-1mamba
- update to 1.3
* Wed Apr 15 2009 gil <puntogil@libero.it> 1.1-1mamba
- package created by autospec