正在学习女王陛下的 [openSUSE 下构建 RPM 软件包的教学 ]

怎么会看不清呢。。。。还好我还留着当时练习的那个文件,但是名字什么我改了(开头的注释也不贴了)

Name:           avxsynth
Version:        4.0
%define rel PaleFire
Release:        0.%{rel}
License:        GPL-2.0+
Summary:        Linux Port of Avisynth
Url:            https://github.com/avxsynth/avxsynth
Group:          Productivity/Multimedia/Video/Editors and Convertors 
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  pkg-config
BuildRequires:  yasm
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  MPlayer
BuildRequires:  cairo-devel
BuildRequires:  pango-devel
BuildRequires:  libjpeg8-devel
BuildRequires:  libqt4-devel
BuildRequires:  libffmpeg-devel
BuildRequires:  liblog4cpp5
BuildRequires:  log4cpp-devel
Provides:       aviaynth = %{version}
Obsoletes:      aviaynth < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
AvxSynth is a Linux port of the AviSynth toolkit. The objective of the
porting effort was to bring the power of AviSynth into the Linux
world. In particular, we are interested in AviSynth as a frame server
front-end to the encode step of our media pipeline.


%package devel
Summary:     Development Headers for Avxsynth
Group:       Development/Libraries/C and C++
Requires:    %{name} = %{version}
%description devel
AvxSynth is a Linux port of the AviSynth toolkit. The objective of the
porting effort was to bring the power of AviSynth into the Linux
world. In particular, we are interested in AviSynth as a frame server
front-end to the encode step of our media pipeline.

This package provide Development Headers for avxsynth.
%prep
%setup -q

%build
autoreconf -i
%configure
make %{?_smp_mflags}

%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/%{name}

rm -rf %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README.md debian/changelog debian/copyright
%{_bindir}/AVXEdit
%{_bindir}/avxFrameServer
%{_libdir}/%{name}
%{_libdir}/libavxsynth.so.0
%{_libdir}/libavxsynth.so.0.0.0
%{_libdir}/libavxutils.so.0
%{_libdir}/libavxutils.so.0.0.0


%files devel
%defattr(-,root,root)
%{_includedir}/%{name}
%{_libdir}/libavxsynth.so
%{_libdir}/libavxutils.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/avxutils.pc

%changelog

其实女王好像还有一个打包输入法的视频吧,英文的,当时 115 里有的,后来。。。。后来我就找不到了。。。。好后悔当时没有存下来。。。现在不知道谁手里还有。。。。

这里是我给 xboxdrv 打的包
build.opensuse.org/package/view_file/home:intijk/xboxdrv/xboxdrv.spec?expand=1

大概就是这样写

Name:           xboxdrv
Version:		0.8.5	
%define rel intijk
Release:		0.%{rel}

它的作用只是用来做字符串替换而已,而且如果你真的在 OBS 上打包,这个 release name 是系统给分配的,你自己设的会被覆盖掉。

打包输入法的视频在优酷里有,优酷里就两部女王的视频。输入法和 rpm。