Skip to content

Add RPM spec file#2

Merged
posva merged 1 commit into
posva:masterfrom
neingeist:master
Sep 19, 2015
Merged

Add RPM spec file#2
posva merged 1 commit into
posva:masterfrom
neingeist:master

Conversation

@neingeist

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread catimg.spec

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for ?
I found it at https://fedoraproject.org/wiki/Packaging:DistTag

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. On my system (Fedora 22) this adds .fc22 to the version like this:

catimg-2.0-1.fc22

@posva

posva commented Sep 18, 2015

Copy link
Copy Markdown
Owner

Hey, thanks for the rpm. I've never created one.

I cannot test ATM and I cannot find a validator for these specs. Do you have any clue so I can search a bit more?

@posva

posva commented Sep 18, 2015

Copy link
Copy Markdown
Owner

I'll add the license and merge this PR tomorrow
Thanks! 😄

@neingeist

Copy link
Copy Markdown
Contributor Author

Best way to get into spec files: Build a RPM :) On F22:

dnf install rpm-build rpmdevtools
spectool -g catimg.spec # Downloads catimg-2.0.tar.gz
mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/RPMS/x86_64 ~/rpmbuild/SRPMS
mv catimg-2.0.tar.gz ~/rpmbuild/SOURCES
rpmbuild -ba catimg.spec
# RPM should now be in ~/rpmbuild/RPMS/x86_64

I haven't run any validation/lint tool on the RPM/spec yet.

@neingeist

Copy link
Copy Markdown
Contributor Author

The Fedora Wiki on creating RPM files:
https://fedoraproject.org/wiki/How_to_create_an_RPM_package

posva added a commit that referenced this pull request Sep 19, 2015
@posva posva merged commit 45ca448 into posva:master Sep 19, 2015
@posva

posva commented Sep 19, 2015

Copy link
Copy Markdown
Owner

I'll have to update the version field each time I release a new version, don't I?

@neingeist

Copy link
Copy Markdown
Contributor Author

Yes, it will always build the version specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants